import re

def test(old_file, new_file):
    """test all dialects against URL"""
    logfile = open(new_file, "w")
    with open(old_file) as infile:
        for line in infile:
            if 'com.cs.esp.services.internal.DataAccessService' in line:
                # print line
                pass
            else:
                print line
                logfile.write(line)
    logfile.write(" - END -")
    logfile.close()

if __name__ == "__main__":
    test("/tmp/sql.log", "/tmp/sql_ok.log")
